import React, {Component} from 'react';
import Main from './container/Main'
import {Switch,Route,Redirect} from 'react-router-dom'
import './APP.css'
import Login from "./container/Login";

class App extends Component {
    render() {
        return (
            <div className='app'>
                <Switch>
                    <Route path={'/login'} component={Login}/>
                    <Route path={'/main'} component={Main}/>
                    <Redirect to={'/login'}/>
                </Switch>
            </div>
        );
    }
}

export default App;